function save_pic(fn)
%SAVE_PIC(fn)  Save the current figure.
%
% save_pic(fn)
%
% Save the current figure (gcf) into files named fn.eps, fn.png, and
% fn.fig.
%
% Copied from Shlomi's code.
% Yoel Shkolnisky, February 2014.

OUTDIR=['latex' filesep 'article' filesep 'figs' filesep];
saveas(gcf,[OUTDIR fn], 'epsc');
saveas(gcf,[OUTDIR fn], 'png');
hgsave(gcf,[OUTDIR fn]);
end
